Component({
  properties: {
    menu: {
      type: Array,
      value: []
    },
    current: Number
  },
  data: {},
  methods: {
    onMenu(event) {
      const data = event.currentTarget.dataset
      const { index, item } = data
      // this.setData({ current: index })
      this.triggerEvent('menu', {
        data: {
          index,
          id: item.id
        }
      }, {})
    }
  }
});
